import instance from '@/http/index.js'

// 获取所有轮播图
export const getAllSwiperAPI = () => {
	return instance({
		url: '/set/getAllSwiper',
		method: 'GET',
	})
}

// 获取公司名称
export const getCompanyNameAPI = () => {
	return instance({
		url: '/set/getCompanyName',
		method: 'GET',
	})
}

// 修改公司名称
export const updateCompanyNameAPI = (set_value) => {
	return instance({
		url: '/set/updateCompanyName',
		method: 'POST',
		data: {
			set_value
		}
	})
}

// 编辑公司介绍的接口
export const updateCompanyIntroduce = (set_text, set_name) => {
	return instance({
		url: '/set/updateCompanyIntroduce',
		method: 'POST',
		data: {
			set_text,
			set_name
		}
	})
}

// 获取公司介绍
export const getCompanyIntroduce = (set_name) => {
	return instance({
		url: '/set/getCompanyIntroduce',
		method: 'POST',
		data: {
			set_name
		}
	})
}

// 获取公司所有介绍
export const getCompanyAllInfo = () => {
	return instance({
		url: '/set/getCompanyAllInfo',
		method: 'GET',
	})
}

// 获取公司部门
export const getCompanyDepartment = () => {
	return instance({
		url: '/set/getCompanyDepartment',
		method: 'GET',
	})
}

// 设置公司部门
export const setCompanyDepartment = (set_value) => {
	return instance({
		url: '/set/setCompanyDepartment',
		method: 'POST',
		data: {
			set_value
		}
	})
}

// 获取公司产品
export const getCompanyProduct = () => {
	return instance({
		url: '/set/getCompanyProduct',
		method: 'GET',
	})
}


// 设置公司产品
export const setCompanyProduct = (set_value) => {
	return instance({
		url: '/set/setCompanyProduct',
		method: 'POST',
		data: {
			set_value
		}
	})
}